function remove(icode){
	$('#myModal').modal('show');
	$.post("../asset/remove_Instrument.action",{"instrument.icode":icode}, function(result) {
		if(result.msg=="succ"){
			$('#myModal').modal('hide');
			$("#alertinfo").html("工具仪器信息删除成功。");
			$("#closewin").bind("click",function(){
				$("#closewin").unbind("click");
				$('#myinfo').modal('hide');
				window.location.reload();
			});
			$('#myinfo').modal('show');
		}else{
			$('#myModal').modal('hide');
			$("#alertinfo").html(result.msg);
			$('#myinfo').modal('show');
		}
	});
}
function conditionExport(){
	var iname=$("#iname").val();
	var unit=$("#unit").val();
	var addr=$("#addr").val();
	window.location.assign("../asset/exportExcel_Instrument.action?instrument.iname="+iname+"&instrument.unit="+unit+"&instrument.addr="+addr);
}
function allExport(){
	window.location.assign("../asset/exportExcel_Instrument.action");
}
function conditionPrint(){
	var iname=$("#iname").val();
	var unit=$("#unit").val();
	var addr=$("#addr").val();
	$("#print_instrument").attr("src","../asset/print_Instrument.action?instrument.iname="+iname+"&instrument.unit="+unit+"&instrument.addr="+addr);
}
function allPrint(){
	$("#print_instrument").attr("src","../asset/print_Instrument.action");
}